<!DOCTYPE html>
<html>
<head>
	<title>js案例第06例</title>
</head>
<body>

</body>
<script type="text/javascript">
	var nowTime = new Date();
	document.write(nowTime);
	hours = nowTime.getHours();
	document.write("<br/>");
	document.write(hours);
	if(hours>10){
		alert('现在时间大于10');
	}
</script>
</html>